package com.fesine.blog.service.impl;

import com.fesine.blog.domain.Authority;
import com.fesine.blog.repository.AuthorityRepository;
import com.fesine.blog.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: Authority服务接口的实现
 * @author: Fesine
 * @createTime:2017/12/19
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/12/19
 */
@Service
public class AuthorityServiceImpl implements AuthorityService {

    @Autowired
    private AuthorityRepository authorityRepository;
    @Override
    public Authority getAuthorityById(Long id) {
        return authorityRepository.findOne(id);
    }
}
